unit Menu;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Menus;

type
  TfMenuPrincipal = class(TForm)
    MainMenu1: TMainMenu;
    File1: TMenuItem;
    Fechar1: TMenuItem;
    Cadastro1: TMenuItem;
    Usurio1: TMenuItem;
    Jogador1: TMenuItem;
    LimiteDbito1: TMenuItem;
    Ficha1: TMenuItem;
    Capil1: TMenuItem;
    Fechamento1: TMenuItem;
    DevoluodeFicha1: TMenuItem;
    orneio1: TMenuItem;
    RingGame1: TMenuItem;
    Sair1: TMenuItem;
    procedure Sair1Click(Sender: TObject);
    procedure Fechar1Click(Sender: TObject);
    procedure Usurio1Click(Sender: TObject);
    procedure Jogador1Click(Sender: TObject);
    procedure LimiteDbito1Click(Sender: TObject);
    procedure Ficha1Click(Sender: TObject);
    procedure Capil1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fMenuPrincipal: TfMenuPrincipal;

implementation

uses CadastrarUsuario, CadastrarJogador, Devolucao, CadastrarLimite,
  EntradaFichas, CadastrarCapile;

{$R *.dfm}

procedure TfMenuPrincipal.Sair1Click(Sender: TObject);
begin
Application.Terminate;
end;

procedure TfMenuPrincipal.Fechar1Click(Sender: TObject);
begin
Application.Terminate;
end;

procedure TfMenuPrincipal.Usurio1Click(Sender: TObject);
begin
fUsuario.show;
fMenuPrincipal.Visible := false;
end;

procedure TfMenuPrincipal.Jogador1Click(Sender: TObject);
begin
fJogador.show;
fMenuPrincipal.Visible := false;
end;

procedure TfMenuPrincipal.LimiteDbito1Click(Sender: TObject);
begin
fLimite.show;
fMenuPrincipal.Visible := false;
end;

procedure TfMenuPrincipal.Ficha1Click(Sender: TObject);
begin
fFichas.show;
fMenuPrincipal.Visible := false;
end;

procedure TfMenuPrincipal.Capil1Click(Sender: TObject);
begin
fCapile.show;
fMenuPrincipal.Visible := false;
end;

end.
